<?php
/**
 *
 * @time 2022-7-25
 * @uthor 王恒兵
 */

use Cal\server\Server;
use Grpc\RpcServer;

require dirname(dirname(__FILE__)) . '/vendor/autoload.php';

$server = new RpcServer();
$server->addHttp2Port('0.0.0.0:50052');// 定义服务端口
$server->handle(new Server());
$server->run();